<td [attr.colspan]="colspan()">
  <ix-table-expandable-row>
    @if (group().local) {
      <button mat-button [ixTest]="[group().group, 'members']" (click)="openGroupMembersForm()">
        <ix-icon name="people"></ix-icon>
        <span>{{ 'Members' | translate }}</span>
      </button>
    }

    @if (!group().builtin && group().local) {
      <button
        mat-button
        [ixTest]="[group().group, 'edit']"
        (click)="doEdit(group())"
      >
        <ix-icon name="edit"></ix-icon>
        <span>{{ 'Edit' | translate }}</span>
      </button>
    }

    <ng-container *ixRequiresRoles="[Role.AccountWrite]">
      @if (!group().builtin) {
        <button
          mat-button
          [ixTest]="[group().group, 'delete']"
          (click)="doDelete(group())"
        >
          <ix-icon name="mdi-delete"></ix-icon>
          <span>{{ 'Delete' | translate }}</span>
        </button>
      }
    </ng-container>
  </ix-table-expandable-row>
</td>
